﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoreEx.Database.Query
{
    public interface ICaseExpression : IExpression
    {
        IList<IWhenThenExpression> WhenExpressions { get; }
        IExpression ElseExpression { get; set; }

        ICaseExpression When(IExpression whenExpression, IExpression thenExpression);
        ExpressionBase Else(IExpression elseExpression);
        ExpressionBase End();
    }
}
